﻿<%@ Page Language="C#" AutoEventWireup="true" EnableViewState="false" CodeBehind="Templates.aspx.cs"
    Inherits="Card.Web.Templates" %>
<%@ Import Namespace="Card.Utility" %>
<%@ Register Src="Controls/Header.ascx" TagName="Header" TagPrefix="uc1" %>
<%@ Register Src="Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%=this.AreaDesc %>名片模版-名片设计|名片制作|名片下载|名片模板下载_<%=SiteName %></title>
    <link href="css/layout.css" type="text/css" rel="Stylesheet" />
    <link href="css/mp.css" type="text/css" rel="Stylesheet" />
    <link href="css/ui-lightness/jquery-ui-1.9.2.custom.min.css" rel="Stylesheet" />
    <script src="JavaScript/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="JavaScript/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
    <script src="JavaScript/common.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <uc1:Header ID="header" LinkIndex="2" runat="server" />
    <div class="adv">
        <img alt="" src="themes/<%=this.Theme %>/Images/adv3.gif">
    </div>
    <div class="adv">
        <img alt="" src="themes/<%=this.Theme %>/images/process.png">
    </div>
    <div class="main solid_border">
        <div class="top_info clear-fix">
            <h2>
                名片模板</h2>
        </div>
        <div class="industryList">
            <ul class="clear-fix">
                <li><a href="templates.aspx" class='<%= string.IsNullOrEmpty(this.TemplateType)?"yellow":string.Empty %>'>
                    全部行业 </a></li>
                <asp:Repeater ID="rptList" runat="server">
                    <ItemTemplate>
                        <li><a href='templates.aspx?t=<%# Eval("LookupCode").ToString().ToLower() %>' 
                        class='<%# string.Compare(this.TemplateType,Eval("LookupCode").ToString(),true) == 0?"yellow":string.Empty %>'>
                            <%# Eval("Value") %>
                        </a></li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div class="Card_Template">
            <div class="Template_search">
                <div class="Template_search_bg clear-fix">
                    <%--<div class="Sort_S">
                        排序方式： <a href="#" class="yellow">默认</a> <a href="#">热门</a> <a href="#">浏览量</a> <a
                            href="#">最新</a>
                    </div>--%>
                    <div class="Type_s" style="display:none">
                        分类：
                        <asp:DropDownList ID="dropColor" onchange="query();" runat="server">
                            <asp:ListItem Value="">所有颜色</asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="dropStyle" onchange="query();" runat="server">
                        </asp:DropDownList>
                    </div>
                </div>
            </div>
            <div class="Card_Template_list clear-fix">
                <div class="tem_list">
                    <ul class="clear-fix">
                        <asp:Repeater ID="rptCardList" runat="server">
                            <ItemTemplate>
                                <li>
                                    <div>
                                        <a target="_blank" href="design.aspx?id=<%# Eval("ID") %>">
                                            <img border="0" src="<%# ImageUtilty.GetTemplateListImagePath(Eval("FRONT_IMAGE").ToString()) %>" alt='<%# Eval("NAME") %>'></a>
                                    </div>
                                    <p>
                                        <a target="_blank" href="design.aspx?id=<%# Eval("ID") %>"><%# Eval("NAME") %></a></p>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                    <div class="PublicPageNav">
                        <baf:UrlPager ID="pager" CssClass="pagination" runat="server" PageSize="12" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <uc1:Footer ID="footer" runat="server" />
    </form>
</body>
</html>

<script type="text/javascript">
    function query() {
        //var color = $('#dropColor').val().toLowerCase();
        //var style = $('#dropStyle').val().toLowerCase();
        //var url = 'templates.aspx?t=<%=this.TemplateType.ToLower() %>&c=' + color + "&s=" + style;
        var url = 'templates.aspx?t=<%=this.TemplateType.ToLower() %>';
        location.href = url;

    }
</script>

